home *** CD-ROM | disk | FTP | other *** search
/ Alde ADA 5 #1 / ADA CD-ROM - Alde Publishing.iso / cm / cwaite.sid < prev    next >
Encoding:
Text File  |  1988-05-03  |  5.5 KB  |  123 lines

  1. --= SID = SIMTEL20 Ada Software Repository Item Description File = SID =--
  2. -- UNIT NAME         : generic package GENERIC_MATH_FUNCTIONS
  3. -- VERSION           : 1.0
  4. -- REVIEW CODE       : 
  5. -- DDN ADDRESS       : WWHITAKER@ADA20
  6. -- AUTHOR            : Col. William A. Whitaker, Lt. Tim Eicholz, USAF
  7. -- COPYRIGHT         : 
  8. -- DATE CREATED      : JULY 1982
  9. -- DATE RELEASED     : JULY 1986
  10. -- DATE LAST UPDATED : WHITAKER JULY 1986
  11. -- LOCATION          : ASR
  12. -- ENVIRONMENT       : Rational R1000, VAX (DEC), others
  13. --= CLASSIFICATION       ===============================================--
  14. -- CATEGORY LEVEL 1  : MATH
  15. -- CATEGORY LEVEL 2  : Library
  16. -- CATEGORY LEVEL 3  : Cody-Waite
  17. -- CATEGORY LEVEL 4  : 
  18. -- KEYWORD           : MATH
  19. -- KEYWORD           : MATH_FUNCTIONS
  20. -- KEYWORD           : ELEMENTARY_FUNCTIONS
  21. -- INDEX             : Math
  22. -- INDEX             : Math Functions
  23. -- INDEX             : Functions, Math
  24. -- TAXONOMY          : 
  25. -- DEPENDENCIES      : 
  26. -- SEE ALSO          : 
  27. --= FILE LISTING         ===============================================--
  28. -- FILE SPECS        : PD:<ADA.MATH>CODY*.*
  29. -- DIRECTORY DISPLAY :
  30. -- Directory   PD:<ADA.MATH>
  31. --      File Name     Byte Count  Line Count
  32. --   ---------------  ----------  ----------
  33. --   CODYWAITE.CMM           572          18
  34. --   CODYWAITE.DOC         13104         251
  35. --   CODYWAITE.PRO          2504          60
  36. --   CODYWAITE.SRC         77400        1856
  37. --   CODYWAITE.TST        106938        3192
  38. --   ===============  ==========  ==========
  39. --     5 Files            200518        5377
  40. --= ABSTRACT             ===============================================--
  41. --         A set of elementary math  functions  (generic  on  digits  <>)
  42. -- corresponding  to the FORTRAN intrinsic functions.  The implementation
  43. -- of the body uses the truncated polynominals method of Cody and  Waite.
  44. -- This   is  a  set  of  easily  understood  code  ment  to  be  machine
  45. -- independent.  They are not particularly fast.  They could be optimized
  46. -- for  particular  machines.   A fairly extensive set of test procedures
  47. -- are also provided.
  48. -- 
  49. --     The available functions and constants are:
  50. -- 
  51. -- 
  52. --     Pi        : constant := 3.14159_26535_89793_23846_26433_83279_50288_41972;
  53. --     E         : constant := 2.71828_18284_59045_23536_02874_71352_66249_77572;
  54. --     Log_Of_2  : constant := 0.69314_71805_59945_30941_72321_24158_17656_80755;
  55. --     Log_Of_10 : constant := 2.30258_50929_94045_68401_77914_54684_36420_76011;
  56. -- 
  57. --     function Sign (X, Y : Floating) return Floating;
  58. -- --  Returns the value of X with the sign of Y
  59. -- 
  60. --     function Max (X, Y : Floating) return Floating;
  61. -- --  Returns the algebraicly larger of X and Y
  62. --     function Min (X, Y : Floating) return Floating;
  63. -- --  Returns the algebraicly smaller of X and Y
  64. -- 
  65. --     function Truncate (X : Floating) return Floating;
  66. -- --  Returns the floating value of the integer no larger than X
  67. -- --  Truncates toward zero
  68. --     function Round (X : Floating) return Floating;
  69. -- --  Returns the floating value of the integer nearest X
  70. -- 
  71. --     procedure Set_Ran_Key (K : in Floating := Floating (0.0));
  72. -- --  Can reset the random number generator
  73. --     function Ran return Floating;
  74. -- --  A random number between zero and one
  75. -- 
  76. --     function Sqrt (X : Floating) return Floating;
  77. --     function Cbrt (X : Floating) return Floating;
  78. --     function Log (X : Floating) return Floating;
  79. --     function Log10 (X : Floating) return Floating;
  80. --     function Exp (X : Floating) return Floating;
  81. --     function "**" (X, Y : Floating) return Floating;
  82. -- 
  83. --     function Sin (X : Floating) return Floating;
  84. --     function Cos (X : Floating) return Floating;
  85. --     function Tan (X : Floating) return Floating;
  86. --     function Cot (X : Floating) return Floating;
  87. -- 
  88. --     function Asin (X : Floating) return Floating;
  89. --     function Acos (X : Floating) return Floating;
  90. --     function Atan (X : Floating) return Floating;
  91. --     function Atan2 (V, U : Floating) return Floating;
  92. -- 
  93. --     function Sinh (X : Floating) return Floating;
  94. --     function Cosh (X : Floating) return Floating;
  95. --     function Tanh (X : Floating) return Floating;
  96. --= REVISION HISTORY     ===============================================--
  97. --
  98. --
  99. -- DATE         VERSION    AUTHOR                  HISTORY
  100. -- 18JUL86       1.0    Whitaker                Initial Release
  101. --
  102. --= RELEASE NOTICE       ===============================================--
  103. --
  104. -- This software is not subject to copyright.
  105. --
  106. -- This software is released to the Ada community.
  107. -- This software is released to the Public Domain (note:
  108. --   software released to the Public Domain is not subject
  109. --   to copyright protection).
  110. -- Restrictions on use or distribution:  NONE
  111. --
  112. --= DISCLAIMER           ===============================================--
  113. --     This software and its documentation are provided "AS IS" and
  114. -- without any expressed or implied warranties whatsoever.  No warranties
  115. -- as to performance, merchantability, or fitness for a particular
  116. -- purpose exist.
  117. --     The user is advised to test the software thoroughly before
  118. -- relying on it.  The user must assume the entire risk and liability of
  119. -- using this software.  In no event shall any person or organization of
  120. -- people be held responsible for any direct, indirect, consequential or
  121. -- inconsequential damages or lost profits.
  122. --======================================================================--
  123.